package br.ufpe.cin.analysis.plugin.entities;

import java.util.Vector;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
import javax.xml.bind.annotation.XmlType;

@XmlRootElement(namespace = "br.ufpe.cin.analysis.plugin.entities")
@XmlType(propOrder = { "processName", "lanes"} )
public class NewProcess {
	
	@XmlElementWrapper(name = "laneList")
	@XmlElement(name = "lane")
	private Vector<Lane> lanes;
	
	@XmlElement(name = "processName")
	private String processName;
	
	public NewProcess(Vector<Lane> lanes, String name)
	{
		this.lanes = lanes;
		this.processName = name;
	}
	
	public NewProcess(String name)
	{
		this(new Vector<Lane>(),name);
	}
	
	public NewProcess()
	{
		this(null,null);
	}
	
	@XmlTransient
	public Vector<Lane> getLanes() {
		return this.lanes;
	}
	
	
	public void setActivities(Vector<Lane> lanes) {
		this.lanes = lanes;
	}
	
	@XmlTransient
	public String getName() {
		return this.processName;
	}

	public void setName(String name) {
		this.processName = name;
	}

}
